/**
 * Witontek.com.
 * Copyright (c) 2012-2016 All Rights Reserved.
 */
package test.java151.clone;

import test.BaseModel;

/**
 * 
 * @author Long
 * @version $Id: Apple.java, v 0.1 2016年12月29日 下午3:42:42  xiaolong.ma  Exp $
 */
public class Apple extends BaseModel implements Cloneable {

    /**  */
    private static final long serialVersionUID = 2416909348272082997L;

    private String            name;

    private int               age;

    private Integer           price;

    public Apple clone() {
        try {
            return (Apple) super.clone();
        } catch (CloneNotSupportedException e) {
            System.out.println("Cloning not allowed.");
            return this;
        }
    }

    /**
     * Getter method for property <tt>name</tt>.
     * 
     * @return property value of name
     */
    public String getName() {
        return name;
    }

    /**
     * Setter method for property <tt>name</tt>.
     * 
     * @param name value to be assigned to property name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Getter method for property <tt>age</tt>.
     * 
     * @return property value of age
     */
    public int getAge() {
        return age;
    }

    /**
     * Setter method for property <tt>age</tt>.
     * 
     * @param age value to be assigned to property age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * Getter method for property <tt>price</tt>.
     * 
     * @return property value of price
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * Setter method for property <tt>price</tt>.
     * 
     * @param price value to be assigned to property price
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

}
